-- GENERATED SPELL FOR [Skithian Dreadhawk] --


function spell0_18452(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18452', 500, 1)
end

function spell1_18452(pUnit, Event) --@Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(32908,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18452', 10281, 1)
end

function Sorts_18452(pUnit, Event)
local choix_sorts_18452 = math.random(0, 1)
if choix_sorts_18452 == 0 then
pUnit:RegisterEvent('spell0_18452', 1, 1)
end
if choix_sorts_18452 == 1 then
pUnit:RegisterEvent('spell1_18452', 1, 1)
end
end

function mob18452_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18452', math.random(1500, 3000), 1)
end

function mob18452_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18452_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18452_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18452, 1, 'mob18452_Action')
RegisterUnitEvent(18452, 2, 'mob18452_Leave')
RegisterUnitEvent(18452, 3, 'mob18452_Kill')
RegisterUnitEvent(18452, 4, 'mob18452_Die')
